<style type="text/css">
    #region_address .n-error{
        margin-left: 250px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required;length(~20)" class="form-control" name="row[nickname]" type="text" value="" placeholder="請輸入客服名稱">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required;length(~20)" class="form-control" name="row[username]" type="text" value="" placeholder="請輸入賬號">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Bright_password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bright_password" data-rule="required;length(~20)" class="form-control" name="row[bright_password]" type="text" value="" placeholder="請輸入密碼">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Cat_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_id" data-rule="required" data-source="consulting_category/index" data-params='{"custom[parent_id]":"0"}'
 class="form-control selectpage" name="row[cat_id]" type="text" value="" placeholder="請選擇諮詢分類">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Region_address')}:</label>
        <div class="row">
            <div class="col-xs-9" id="region_address">
                <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                    <select  data-rule="required" class="province form-control" name="province" data-url="region/area">
                    </select>
                    <select  data-rule="required" class="city form-control" name="city" data-url="region/area">
                    </select>
                    <select  data-rule="required" class="area form-control" name="district" data-url="region/area">
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
